<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>
        <%-title%>
    </title>
    <style>
        * {
            box-sizing: border-box
        }

        p {
            margin: 0 0;
        }

        li {
            list-style: none;
            border: solid 1px #aaa;
            height: 400px;
        }

        div {}
    </style>
</head>

<body>
    <p>
        game
        <a href="/">首页</a>
        <a href="/logoin">登录</a>
        <a href="/zhuce">注册</a>


    </p>
    <div>
        <% game.forEach(function(game){%>
            <ul>
                <li style="width:25%;float:left;">
                    <p>
                        ID:--
                        <%=game._id%>
                    </p>
                    <p>
                        大小：--
                        <%=game.game_big%>Mb
                    </p>
                    <p>
                        价格--
                        <%=game.gameprize%>￥
                    </p>
                    <p>
                        厂商--
                        <%=game.gameer_poeple%>
                    </p>
                    <p>
                        推荐人：--
                        <%=game.gameer%>
                    </p>
                    <p>
                        游戏名字：--
                        <%=game.gamename%>
                    </p>
                    <p>
                        编号：--
                        <%=game.gameid%>
                    </p>
                    <p>
                        标签--
                        <%=game.gametype%>
                    </p>
                    <p>
                        图片--
                        <img style="width:50%" src="/images/<%=game.gameer_bimg[0]%>" alt="">
                    </p>
                    <p>
                        简介--
                        <%=game.gamemotto.substring(0,30)%>
                    </p>
                    <a href="/updata/<%=game._id%>">修改</a>
                    <a href="/shanchu/<%=game._id%>">删除</a>
                </li>
            </ul>
            <% }) %>
    </div>
</body>

</html>